package com.wnxy.mallserver.exception;

import com.wnxy.mallserver.vo.goods.GoodsStockExceptionVo;
import lombok.Data;

/**
 * 库存异常
 */
@Data
public class GoodsStockException extends RuntimeException{
    private GoodsStockExceptionVo goodsStockExceptionVo;

    /**
     * 构造方法的重载
     */
    public GoodsStockException() {
    }
    public GoodsStockException(String message) {
        super(message);
    }
    public GoodsStockException(String message, int gid, int stock){
        super(message);
        this.goodsStockExceptionVo = new GoodsStockExceptionVo(gid,stock);

    }
}
